//package com.relax.guolv;
//
//import org.springframework.context.annotation.Condition;
//import org.springframework.context.annotation.ConditionContext;
//import org.springframework.core.env.Environment;
//import org.springframework.core.type.AnnotatedTypeMetadata;
//
//public class MyConditionlinux implements Condition {
//    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
//        Environment environment = context.getEnvironment();
//        String property = environment.getProperty("os.name");
//        System.out.println(property);
//        if(property.contains("linux")){
//            return true;
//        }
//        return false;
//    }
//}
